package com.ybkj.o2o.zhuanche.common.query;



import java.util.Date;

public class InsuranceQuery {
  

  private Long id;
	  
  private Long carId;
	  
  private Date insuranceValidDate;
	  
  public Long getId() {
	return id;
}

public void setId(Long id) {
	this.id = id;
}

public Long getCarId() {
	return carId;
}

public void setCarId(Long carId) {
	this.carId = carId;
}

public Date getInsuranceValidDate() {
	return insuranceValidDate;
}

public void setInsuranceValidDate(Date insuranceValidDate) {
	this.insuranceValidDate = insuranceValidDate;
}

public Date getInsuranceEndDate() {
	return insuranceEndDate;
}

public void setInsuranceEndDate(Date insuranceEndDate) {
	this.insuranceEndDate = insuranceEndDate;
}

public String getInsuranceCompany() {
	return insuranceCompany;
}

public void setInsuranceCompany(String insuranceCompany) {
	this.insuranceCompany = insuranceCompany;
}

public String getInsuranceCode() {
	return insuranceCode;
}

public void setInsuranceCode(String insuranceCode) {
	this.insuranceCode = insuranceCode;
}

public String getInsuranceType() {
	return insuranceType;
}

public void setInsuranceType(String insuranceType) {
	this.insuranceType = insuranceType;
}

public Double getInsuranceAmount() {
	return insuranceAmount;
}

public void setInsuranceAmount(Double insuranceAmount) {
	this.insuranceAmount = insuranceAmount;
}

public String getVehicleLicense() {
	return vehicleLicense;
}

public void setVehicleLicense(String vehicleLicense) {
	this.vehicleLicense = vehicleLicense;
}

public String getCertificateNo() {
	return certificateNo;
}

public void setCertificateNo(String certificateNo) {
	this.certificateNo = certificateNo;
}

public String getAppKey() {
	return appKey;
}

public void setAppKey(String appKey) {
	this.appKey = appKey;
}

private Date insuranceEndDate;
	  
  private String insuranceCompany;
	  
  private String insuranceCode;
	  
  private String insuranceType;
	  
  private Double insuranceAmount;
	  
  private String vehicleLicense;
	  
  private String certificateNo;
  
  private String appKey;

  private Integer page;

  private Integer rows;

  private Integer offset;

  public Integer getPage() {
    return page;
  }

  public void setPage(Integer page) {
    this.page = page;
  }

  public Integer getRows() {
    return rows;
  }

  public void setRows(Integer rows) {
    this.rows = rows;
  }

  /**
   * 根据page和rows计算出偏移量.
   */
  
  public Integer getOffset() {
    if (getPage() == null || getRows() == null) {
      return null;
    }
    if (getPage() >= 1) {
      return (getPage() - 1) * getRows();
    }

    return offset;
  }

  public void setOffset(Integer offset) {
    this.offset = offset;
  }


}
